Skip to content

test(sql-workspace): run the selection through the mounted editor (#1148) - #1205

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/selection-run-test
Oct 9, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue/selection-run-test

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Refs #1148

What was wrong

The test "only the selected text runs when there is a selection" was disabled. Setting the controller value directly hung CI for the whole timeout, and it does not match how a user makes a selection. Without it, the selection path of Ctrl+Enter / the run statement had no test.

Changes

  • The selection is set through the mounted editor's EditableText (userUpdateTextEditingValue), as the comment on the skip suggested.
  • Ctrl+Enter is pressed, and the test checks that only the selected statement runs.
  • The skip is removed.

Not verified locally

Tests were not run locally, per the project rule. The test runs in CI, which will show whether the hang is gone; the 60 s timeout still applies.

)

The selection test was disabled: assigning the controller value hung CI, and a
selection made that way is not how a user makes one. It now selects through the
editor's EditableText and runs with Ctrl+Enter, the path a user takes.
@github-actions github-actions Bot added enhancement New feature or request editor Code/SQL editor ux User experience, keyboard shortcuts and interactions P2 Medium priority / Parity & Refactoring labels Oct 9, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit c6726fe into dev Oct 9, 2026
13 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/selection-run-test branch October 11, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

editor Code/SQL editor enhancement New feature or request P2 Medium priority / Parity & Refactoring ux User experience, keyboard shortcuts and interactions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant